import BaseApp from './App';
import BasePage from './Page';
import BaseModel from './Model';
import EJS from 'ejs/ejs';

import './styles/index.less';

import TEMPLATE from 'raw-loader!./templates/index.ejs';
import TEMPLATE_PRE from 'raw-loader!./templates/index_pre.ejs';


class ConfigModel extends BaseModel {

}

class MemberModel extends BaseModel {

}

class IndexPage extends BasePage {

}

class App extends BaseApp {
  constructor(...args) {
    super(...args);
    this.page = new IndexPage(this, EJS.compile(TEMPLATE), EJS.compile(TEMPLATE_PRE));
  }

  set currentPage(page) {
    return this.page;
  }

  get currentPage() {
    return this.page;
  }
}

let $el = document.createElement('div');
document.body.appendChild($el);
new App().mount($el);